import {createRouter, createWebHistory} from 'vue-router';
import Login from '../views/Login.vue'
const routes = [
    {
        path:'/',
        name:'login',
        component:Login
    },
    {
        path: '/index',
        name:'home',
        component: ()=>import('../views/Home.vue'),
        children:[
            {
                path:'',
                name:'guide',
                component:()=>import('../views/Guide.vue')
            }
        ]
    },
    {
        path:'/inherentRisk',
        name:'InherentRisk',
        component:()=>import('../views/InherentRisk.vue'),
        children:[
            {
                path:'',
                name:'geoRisk',
                component:()=>import('../views/GeoRisk.vue')
            },
            {
                path:'clientRisk',
                name:'clientRisk',
                component:()=>import('../views/clientRisk.vue')
            },
            {
                path:'productRisk',
                name:'productRisk',
                component:()=>import('../views/productRisk.vue')
            },{
                path:'channelRisk',
                name:'channelRisk',
                component:()=>import('../views/channelRisk.vue')
            },
        ]
    },
]
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router;